package com.kylefu.design.pattern.abs.factory;


public class FancyDocumentCreator extends DocumentCreator {

  @Override
  public Letter createLetter() {
    return new FancyLetter();
  }

  @Override
  public Resume createResume() {
    return new FancyResume();
  }

  public class FancyLetter extends Letter {

    @Override
    public void show() {
      System.out.println("FancyLetter");
    }
  }

  public class FancyResume extends Resume {

    @Override
    public void show() {
      System.out.println("FancyResume");
    }
  }

}
